
/* ===========================
   OPTIONAL: Extra components / page-only elements
   (коментарями відокремлено; тут стилі для елементів, які можуть бути
    присутні лише на головній сторінці або як додаткові модулі)
   =========================== */

/* --- Hero big-banner (single large image) --- */
.hero-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 36px;
  background: linear-gradient(120deg, rgba(31,143,255,0.06), rgba(12,24,40,0.6));
}
.hero-banner .banner-inner { max-width: 720px; }

/* --- Featured press / badges --- */
.badges {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.badge {
  padding:6px 10px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: var(--muted);
  font-weight:600;
  border: 1px solid rgba(255,255,255,0.02);
}

/* --- Team grid (optional page-only) --- */
.team-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.team-card {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  text-align: center;
}

/* --- Press / Media carousel (optional) --- */
.media-carousel { margin-top: 20px; }

/* ===========================
   Utilities & helpers
   =========================== */

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31,143,255,0.06), rgba(109,211,255,0.02));
  color: var(--accent-2);
  font-weight:700;
  font-size: 0.85rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Layout helpers */
.flex { display:flex; align-items:center; gap:12px; }
.stack { display:flex; flex-direction:column; gap:12px; }

/* Small screens adjustments for fast loading readability */
@media (max-width: 600px) {
  :root { --content-max-w: 920px; }
  h1 { font-size: 1.5rem; }
  p { font-size: 0.98rem; }
  .hero-item { min-height: 260px; }
  .site-footer { padding: 12px; font-size: 0.92rem; }
}

/* ===========================
   Progressive enhancement notes (CSS-only tips)
   - To make left-rail purely CSS-driven expand on hover, rely on .side-nav:hover .side-nav__menu.
   - For mobile full-screen menu, JS should add .open to .side-nav; CSS handles display via .side-nav.open .side-nav__menu.
   - For fade/slide animations of slides: toggle an "active" class on slides and implement transform/opacity transitions.
   - For image optimization: use <picture> with webp sources; CSS will adapt seamlessly.
   - For retina devices: ensure assets are 2x where necessary.
   =========================== */


/* --- Базові налаштування для мобільного --- */
@media (max-width: 768px) {
  /* Основна сітка проєктів стає одноколоною */
  .projects-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Ліва колонка та права колонка тепер повна ширина */
  .projects-grid > div,
  .projects-grid > aside {
    width: 100% !important;
  }

  /* Заголовки та CTA */
  header {
    flex-direction: column !important;
    gap: 12px !important;
  }

  header > div:first-child {
    width: 100% !important;
  }

  header > div:last-child {
    width: 100% !important;
    text-align: left !important;
  }

  /* Проєкти */
  .project-card {
    padding: 14px !important;
  }

  .project-card ul {
    padding-left: 14px !important;
  }

  .project-card div {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .project-card div span {
    margin-left: 0 !important;
    align-self: flex-start !important;
  }

  /* Aside правої колонки (слайдер, контакт, FAQ) */
  aside {
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  aside iframe {
    height: 120px !important;
  }

  /* FAQ — розкривання списку повна ширина */
  details ul {
    padding-left: 12px !important;
  }

  /* Кнопки — займати всю ширину контейнера */
  .project-card .btn,
  aside .btn {
    width: 100% !important;
    text-align: center !important;
  }

  /* Header кнопки CTA */
  header a.btn {
    display: block !important;
  }

  /* ContactStyle.css */

/* ====================== */
/* 1. Reset / базові стилі */
/* ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0f1f;
    color: #edf2f7;
    line-height: 1.6;
    font-size: 16px;
}

/* ====================== */
/* 2. Заголовки та текст */
/* ====================== */
h1, h2, h3 {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
    color: #cfd8e3;
}

/* ====================== */
/* 3. Контейнер та секції */
/* ====================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-hero {
    text-align: center;
}

.contact-hero-figure img {
    width: 128px;
    height: 128px;
    margin: 1rem auto;
    display: block;
}

.contact-hero-figure figcaption {
    font-size: 0.9rem;
    color: #98a7bf;
}

/* ====================== */
/* 4. CTA-кнопки */
/* ====================== */
.contact-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    width: 250px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.contact-cta-sub {
    font-size: 0.8rem;
    color: #d1dbe0;
    margin-top: 0.5rem;
}

/* ====================== */
/* 5. Посилання ресурси */
/* ====================== */
.contact-resources ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-resources a {
    text-decoration: none;
    color: #ffd700;
    transition: color 0.2s;
}

.contact-resources a:hover {
    color: #ffa500;
}

/* ====================== */
/* 6. FAQ */
/* ====================== */
.contact-faq ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-faq li strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #ffdd57;
}

/* ====================== */
/* 7. Footer */
/* ====================== */
.site-footer {
    background-color: #080b17;
    padding: 2rem 1rem;
    color: #98a7bf;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    color: #ffa500;
}

/* ====================== */
/* 8. Cookie модал */
/* ====================== */
.cookie-modal {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #1a2030;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    z-index: 9999;
    color: #edf2f7;
}

.cookie-modal__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cookie-accept, .cookie-decline {
    background-color: #2a3b5f;
    color: #ffd700;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-accept:hover, .cookie-decline:hover {
    background-color: #3b4f87;
}

/* ====================== */
/* 9. Адаптивність */
/* ====================== */
@media (max-width: 768px) {
    .contact-ctas {
        flex-direction: column;
        align-items: center;
    }

    .contact-cta {
        width: 90%;
    }

    .main-content {
        padding: 1rem;
    }
}
